package com.ustc.phoenix.logic;

import com.ustc.phoenix.mapper.UserMapper;
import com.ustc.phoenix.models.User;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * Created by firephoenix on 5/26/16.
 */
public class UserManagementLogic {
    @Autowired
    UserMapper userMapper;
    public List<User> getUsers(User query){
        return userMapper.selectUserByName(query.getName());
    }
}
